﻿// =================================================================== 
// 项目说明,功能实体类,用CodeSmith自动生成。
// =================================================================== 
// 文件名: RegionEntity.cs
// 修改时间：2020-9-8 10:40:08
// 修改人: lixiong
// =================================================================== 
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JX.Infrastructure.Attribute;
using JX.Infrastructure.Common;

namespace JX.Core.Entity
{
	/// <summary>
	/// 数据库表：Region 的实体类.
	/// </summary>
	[Table("Region")]
	public partial class RegionEntity
	{
		#region Properties
		private int? _regionID = 0;
		/// <summary>
		/// 区域ID(主键)(自增长)
		/// </summary>
		[Column("RegionID",TypeName="int")]
		[Key]
		[MyFlag("Identity")]
		public int? RegionID
		{
			get {return _regionID;}
			set {_regionID = value;}
		}
		
		private System.String _country = string.Empty;
		/// <summary>
		/// 国家名称
		/// </summary>
		[Column("Country",TypeName="nvarchar(20)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Country
		{
			get {return _country;}
			set {_country = value;}
		}
		
		private System.String _province = string.Empty;
		/// <summary>
		/// 省份名称	
		/// </summary>
		[Column("Province",TypeName="nvarchar(25)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Province
		{
			get {return _province;}
			set {_province = value;}
		}
		
		private System.String _city = string.Empty;
		/// <summary>
		/// 城市名称	
		/// </summary>
		[Column("City",TypeName="nvarchar(30)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String City
		{
			get {return _city;}
			set {_city = value;}
		}
		
		private System.String _area = string.Empty;
		/// <summary>
		/// 区域名称
		/// </summary>
		[Column("Area",TypeName="nvarchar(25)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Area
		{
			get {return _area;}
			set {_area = value;}
		}
		
		private System.String _area1 = string.Empty;
		/// <summary>
		/// 街道
		/// </summary>
		[Column("Area1",TypeName="nvarchar(25)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Area1
		{
			get {return _area1;}
			set {_area1 = value;}
		}
		
		private System.String _area2 = string.Empty;
		/// <summary>
		/// 小区
		/// </summary>
		[Column("Area2",TypeName="nvarchar(25)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Area2
		{
			get {return _area2;}
			set {_area2 = value;}
		}
		
		private System.String _postCode = string.Empty;
		/// <summary>
		/// 邮政编码
		/// </summary>
		[Column("PostCode",TypeName="nvarchar(10)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String PostCode
		{
			get {return _postCode;}
			set {_postCode = value;}
		}
		
		private System.String _areaCode = string.Empty;
		/// <summary>
		/// 区号
		/// </summary>
		[Column("AreaCode",TypeName="nvarchar(8)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String AreaCode
		{
			get {return _areaCode;}
			set {_areaCode = value;}
		}
		
		#endregion
	}
}
